import os
from mindvision.dataset import DownLoad

dataset_path_cifar10 = "./datasets/cifar10"
# CIFAR-10数据集下载链接
dataset_url_cifar10 = "https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/notebook/datasets/cifar-10-binary.tar.gz"

dl = DownLoad()
dl.download_and_extract_archive(
    url=dataset_url_cifar10, download_path=dataset_path_cifar10)

print(44)
